package com.fuint.common.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fuint.common.dto.StoreDto;
import com.fuint.common.dto.StoreInfo;
import com.fuint.common.service.MerchantService;
import com.fuint.common.service.StoreService;
import com.fuint.framework.exception.BusinessCheckException;
import com.fuint.framework.pagination.PaginationRequest;
import com.fuint.framework.pagination.PaginationResponse;
import com.fuint.repository.mapper.MtMerchantMapper;
import com.fuint.repository.mapper.MtStoreMapper;
import com.fuint.repository.model.MtStore;
import lombok.AllArgsConstructor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;
import java.util.Map;

/**
 * 店铺管理业务实现类
 *
 * Created by FSQ
 * CopyRight https://www.fuint.cn
 */
@Service
@AllArgsConstructor
public class StoreServiceImpl extends ServiceImpl<MtStoreMapper, MtStore> implements StoreService {

    private static final Logger logger = LoggerFactory.getLogger(StoreServiceImpl.class);

    private MtStoreMapper mtStoreMapper;

    private MtMerchantMapper mtMerchantMapper;

    /**
     * 商户接口
     */
    private MerchantService merchantService;

    /**
     * 微信服务接口
     * */
    private WeixinService weixinService;



    @Override
    public PaginationResponse<StoreDto> queryStoreListByPagination(PaginationRequest paginationRequest) throws BusinessCheckException {
        return null;
    }

    @Override
    public MtStore saveStore(StoreDto reqStoreDto) throws BusinessCheckException {
        return null;
    }

    @Override
    public MtStore getDefaultStore(String merchantNo) throws BusinessCheckException {
        return null;
    }

    @Override
    public MtStore queryStoreById(Integer id) throws BusinessCheckException {
        return null;
    }

    @Override
    public StoreDto queryStoreByName(String storeName) throws BusinessCheckException {
        return null;
    }

    @Override
    public StoreDto queryStoreDtoById(Integer id) throws BusinessCheckException {
        return null;
    }

    @Override
    public void updateStatus(Integer id, String operator, String status) throws BusinessCheckException {

    }

    @Override
    public List<MtStore> queryStoresByParams(Map<String, Object> params) throws BusinessCheckException {
        return Collections.emptyList();
    }

    @Override
    public List<StoreInfo> queryByDistance(String merchantNo, String keyword, String latitude, String longitude) throws BusinessCheckException {
        return Collections.emptyList();
    }

    @Override
    public String getStoreNames(String storeIds) {
        return "";
    }
}
